package org.despair2D.ui.puppet 
{
	import flash.events.Event;
	import flash.events.TextEvent;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFieldType;
	import flash.ui.Mouse;
	import flash.ui.MouseCursor;
	
	import org.despair2D.Despair;
	import org.despair2D.core.ns_despair;
	import org.despair2D.ui.events.ManipulateEvent;
	use namespace ns_despair;
	
public class LabelPuppet extends DisplayObjectContainerPuppet 
{
	
	public function LabelPuppet( label:String ) 
	{
		super(true);
		
		this.interactive = false
		m_textField = new TextField()
		this.addChild(m_textField)
		m_textField.multiline = true;
		
		m_textField.autoSize = TextFieldAutoSize.LEFT
		m_textField.htmlText = label
	}
	
	
	public function get textField() : TextField
	{
		return m_textField
	}
	
	
	override ns_despair function dispose() : void
	{
		super.dispose();
		m_textField = null
	}
	
	
	ns_despair var m_textField:TextField
	
}
}
